<template>
  <div id="appraisehead">
    <div class="main">
      <Row>
        <!-- 四种评分 -->
        <Col span="6">
          <p class="zero">{{score.total}}</p>
          <p>{{score.numbers}}人评价</p>
        </Col>
        <Col span="6">
          <p class="descItem">通俗易懂</p>
          <p class="score">{{score.easy}}分</p>
        </Col>
        <Col span="6">
          <p class="descItem">内容实用</p>
          <p class="score">{{score.practical}}分</p>
        </Col>
        <Col span="6">
          <p class="descItem">讲解清晰</p>
          <p class="score">{{score.clear}}分</p>
        </Col>
      </Row>
    </div>
  </div>
</template>

<script>
//导入iview-ui组件
import { Row, Col } from "view-design";

export default {
  name: "appraisehead",
  //组件注册
  components: {
    Row,
    Col
  },
  //传入属性
  props:['score'],
  data() {
    return {
      
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部UI样式修改 */
.main {
  background-color: white;
  text-align: center;
  font-size: 10px;
  padding-top: 15px;
}
.zero {
  font-size: 40px;
  color: #ff9000;
}
.descItem {
  color: #9b9b9b;
  padding: 10px 0;
}
.score {
  font-size: 16px;
}
</style>